<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\relation\HasMany;
use think\model\relation\HasOne;

/**
 * @mixin \think\Model
 */
class AdminVisitRegistrationLog extends Model
{

    public function schoolData(): HasOne {
        return $this->hasOne('AdminSchool', 'id', 'school_id')->field('name,id');
    }
    public function pictureData(): HasMany {
        return $this->HasMany('AdminVisitRegistrationPicture', 'visit_id', 'id')->field('picture_url,id,visit_id');
    }
}
